<?php
/**
* @name 	Assasin's Guild - Team class
* @author	Sean Micklethwaite, Dynamo Studios
*/

class clsGuildTeam extends cDycmsObject
{
	protected $mClsId = 'GuildTeam';
	
	function DrawEditor(cUiEditor &$editor)
	{
		//
		// Draw the editor form
		//

		$editor->AddChild(new cUiTextBox(array(
			'name'=>'name',
			'value'=>$this->mAttributes['name']
		),'Team Name'));
		
		//
		// Add buttons
		//
		
		$editor->AddChild(new cUiButtonSet(array(
			'name' => '$$os-editorAction',
			'method' => 'POST',
			'action' => ''), array(
			'save' => uiGetIcon('disk').'Save',
			'saveNew' => uiGetIcon('page_save').'Save As New',
			'view' => uiGetIcon('magnifier').'View'
		)));
	}
	
	function LoadObject(){
		
	}
	
	function GetSummary(){
		return $this->mAttributes['name'];
	}
	
	function Create(){
		$this->mAttributes['name'] = 'Enter team name';
	}
}

?>
